package com.xw.childhealth.service.impl;

import com.xw.childhealth.dao.AssayCheckItemDao;
import com.xw.childhealth.entity.AssayCheckItem;
import com.xw.childhealth.service.AssayCheckItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 2019-11-21 09:33
 * @Version: 1.0
 */
@Service
public class AssayCheckItemServiceImpl implements AssayCheckItemService {

    @Autowired
    private AssayCheckItemDao assayCheckItemDao;


    @Override
    public List<AssayCheckItem> findByParentIdEquals(Integer id) {
        return assayCheckItemDao.findByParentIdEquals(id);
    }

    @Override
    public void delRecord(Integer id) {
        assayCheckItemDao.deleteById(id);
    }

    @Override
    public AssayCheckItem findByIdEquals(Integer id) {
        return assayCheckItemDao.findByIdEquals(id);
    }

    @Override
    public AssayCheckItem save(AssayCheckItem obj) {
        return assayCheckItemDao.save(obj);
    }
}
